import request from '@/utils/request'

// 查询题库标签列表
export function listQbmsTag(query) {
  return request({
    url: '/qbms/qbmsTag/list',
    method: 'get',
    params: query
  })
}

// 查询题库标签详细
export function getQbmsTag(id) {
  return request({
    url: '/qbms/qbmsTag/' + id,
    method: 'get'
  })
}

// 新增题库标签
export function addQbmsTag(data) {
  return request({
    url: '/qbms/qbmsTag',
    method: 'post',
    data: data
  })
}

// 修改题库标签
export function updateQbmsTag(data) {
  return request({
    url: '/qbms/qbmsTag',
    method: 'put',
    data: data
  })
}

// 删除题库标签
export function delQbmsTag(id) {
  return request({
    url: '/qbms/qbmsTag/' + id,
    method: 'delete'
  })
}
